//
//  Pub_Defines.h
//  DJIVideo
//
//  Created by wenpd on 2021/4/6.
//

#ifndef Pub_Defines_h
#define Pub_Defines_h

#define WeakRef(__obj) __weak typeof(self) __obj = self
#define WeakReturn(__obj) if(__obj ==nil)return;

#define DeviceSystemVersion ([[[UIDevice currentDevice] systemVersion] floatValue])
#define iOS8System (DeviceSystemVersion >= 8.0)


#define SCREEN_WIDTH  (iOS8System ? [UIScreen mainScreen].bounds.size.width : [UIScreen mainScreen].bounds.size.height)
#define SCREEN_HEIGHT (iOS8System ? [UIScreen mainScreen].bounds.size.height : [UIScreen mainScreen].bounds.size.width)

#define DEFAULT_WS_SERVER_ADDRESS @"ws://124.70.140.183:9527/socket"
#define WS_SERVER_KEY @"websocket-address"
#define WS_TOKEN_KEY @"user-token"
#define STR_TABLE    @"DJIVideo"

#endif /* Pub_Defines_h */
